(function(window, angular, moduleName) {
	angular.module(moduleName + "Module", ["ngResource" ]);
	angular.module(moduleName + "Module").factory(
			moduleName,
			function($resource) {				
				service = {};
				//service.serviceName=$resource(url,{},{serviceName:{method:method,isArray:isArray}}).serviceName
service.recoverPassword=$resource('/api/user/recoverPassword',{},{recoverPassword:{method:'POST',isArray:false}}).recoverPassword;
service.login=$resource('/api/seller/login',{},{login:{method:'POST',isArray:false}}).login;
service.logout=$resource('/api/seller/logout',{},{logout:{method:'GET',isArray:false}}).logout;
service.newStore=$resource('/api/seller/Store',{},{newStore:{method:'POST',isArray:false}}).newStore;
service.getStore=$resource('/api/seller/Store/:id',{},{getStore:{method:'GET',isArray:false}}).getStore;
service.register=$resource('/api/seller/register',{},{register:{method:'POST',isArray:false}}).register;
service.myStores=$resource('/api/seller/Store',{},{myStores:{method:'GET',isArray:true}}).myStores;
				return service;
			});
})(window, window.angular,
'Seller');
